<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>QQ音乐</title>
    <!-- IMPORT CSS -->
    <link rel="stylesheet" href="css/reset.min.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="js/prefixfree.min.js" async></script>
    <script>
        // 计算REM和PX换算比例
        (function () {
            const computed = () => {
                let winW = document.documentElement.clientWidth,
                    ratio = 100;
                if (winW >= 750) {
                    document.documentElement.style.fontSize = '100px';
                    return;
                }
                ratio = winW / (750 / 100);
                document.documentElement.style.fontSize = ratio + 'px';
            };
            computed();
            let event = window.hasOwnProperty('onorientationchange') ? 'orientationchange' : 'resize';
            window.addEventListener(event, computed);
        })();
    </script>
</head>

<body>
    <section id="app">
        <!-- 头部 -->
        <header class="header-box">
            <div class="base-info">
                <img src="images/fwh.jpg" alt="" class="pic">
                <h2 class="title"></h2>
                <h3 class="author"></h3>
            </div>
            <a href="javascript:;" class="music-btn"></a>
        </header>

        <!-- 歌词 -->
        <main class="main-box">
            <div class="lyric">
                <div class="wrapper">
                    <!-- <p class="active">粉雾海 - 易烊千玺</p>
                    <p>词：夏鸢/张张/刘愉露/陈可心</p> -->
                </div>
            </div>
        </main>

        <!-- 尾部 -->
        <footer class="footer-box">
            <div class="progress">
                <span class="already">00:00</span>
                <div class="back">
                    <div class="rate"></div>
                </div>
                <span class="duration">00:00</span>
            </div>
            <a href="#" class="download">下载这首音乐</a>
        </footer>

        <!-- 背景 -->
        <div class="bg-image"></div>
        <div class="bg-mark"></div>

        <!-- 音频 -->
        <audio src="images/fwh.m4a" id="myAudio" preload="metadata"></audio>

    </section>

    <!-- IMPORT JS -->
    <script src="js/fastclick.js" defer></script>
    <script src="js/subscribe.js" defer></script>
    <script src="js/index.js" defer></script>
</body>

</html>